<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<!-- 
 <script type="text/javascript"  src="${ctx}/resources/highlight.js/highlight.pack.js"> </script>

 <link rel="stylesheet" href="${ctx}/resources/highlight.js/styles/default.css">
   -->
<script type="text/javascript">
$(document).ready(function() { 
//	hljs.initHighlightingOnLoad();
    $('#fat-btn').click(function () {
        var btn = $(this);
		btn.addClass('disable');
		btn.attr('disabled', 'disable');
		btn.html('Processing....');

		$.ajax({
			url : "${ctx}/admin/migrate/input/",
			type : "POST",
			success : function(data){		
				if(data && data.state && (data.state.indexOf("ERROR") != -1)){
					johnny.error(data.message);
					return;
				}else{
					johnny.info("update conver successfully");
//					btn.addClass('disable');
//					btn.attr('disabled', 'disable');
					btn.html('Finish  Processing');
					
					}
			}
		});

		
      })
});//End document ready functions
</script>

<div class="row-fluid">
<div class="span8">
<div class="box gradient">
<div class="title">
<h4><span>Migrate </span></h4>
<a href="#" class="minimize">Minimize</a></div>
<div class="content scrollable clearfix">
<div class="span4">
<c:if test="${migrate.enable}">
 <button id="fat-btn" data-loading-text="loading..." class="btn">Migrate from ${migrate.path}</button>
<div class="marginB10"></div>
</c:if>
<c:if test="${!migrate.enable}">
 <input class="span8" type="text" readonly="readonly" value="Some value here" />
<div class="marginB10"></div>
</c:if>
</div>
<div>
<pre><code class="css">
pre code {
  display: block; padding: 0.5em;
  background: #F0F0F0;
}

pre code,
pre .subst,
pre .tag .title,
pre .lisp .title,
pre .clojure .built_in,
pre .nginx .title {
  color: black;
}

pre .string,
pre .title,
pre .constant,
pre .parent,
pre .tag .value,
pre .rules .value,
pre .rules .value .number,
pre .preprocessor,
pre .ruby .symbol,
pre .ruby .symbol .string,
pre .aggregate,
pre .template_tag,
pre .django .variable,
pre .smalltalk .class,
pre .addition,
pre .flow,
pre .stream,
pre .bash .variable,
pre .apache .tag,
pre .apache .cbracket,
pre .tex .command,
pre .tex .special,
pre .erlang_repl .function_or_atom,
pre .markdown .header {
  color: #800;
}

pre .comment,
pre .annotation,
pre .template_comment,
pre .diff .header,
pre .chunk,
pre .markdown .blockquote {
  color: #888;
}

pre .number,
pre .date,
pre .regexp,
pre .literal,
pre .smalltalk .symbol,
pre .smalltalk .char,
pre .go .constant,
pre .change,
pre .markdown .bullet,
pre .markdown .link_url {
  color: #080;
}

pre .label,
pre .javadoc,
pre .ruby .string,
pre .decorator,
pre .filter .argument,
pre .localvars,
pre .array,
pre .attr_selector,
pre .important,
pre .pseudo,
pre .pi,
pre .doctype,
pre .deletion,
pre .envvar,
pre .shebang,
pre .apache .sqbracket,
pre .nginx .built_in,
pre .tex .formula,
pre .erlang_repl .reserved,
pre .prompt,
pre .markdown .link_label,
pre .vhdl .attribute,
pre .clojure .attribute,
pre .coffeescript .property {
  color: #88F
}

pre .keyword,
pre .id,
pre .phpdoc,
pre .title,
pre .built_in,
pre .aggregate,
pre .css .tag,
pre .javadoctag,
pre .phpdoc,
pre .yardoctag,
pre .smalltalk .class,
pre .winutils,
pre .bash .variable,
pre .apache .tag,
pre .go .typename,
pre .tex .command,
pre .markdown .strong,
pre .request,
pre .status {
  font-weight: bold;
}

pre .markdown .emphasis {
  font-style: italic;
}

pre .nginx .built_in {
  font-weight: normal;
}

pre .coffeescript .javascript,
pre .javascript .xml,
pre .tex .formula,
pre .xml .javascript,
pre .xml .vbscript,
pre .xml .css,
pre .xml .cdata {
  opacity: 0.5;
}


</code></pre>

</div>


<!-- End .span4 --></div>


</div>
</div>
</div>